package com.gl.saasservice.sys.mapper;

import com.gl.saasservice.sys.vo.LevelVO;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;


public class LevelRowMapper implements RowMapper<LevelVO> {

	@Override
	public LevelVO mapRow(ResultSet rs, int rowNum) throws SQLException {
		LevelVO vo = new LevelVO();
		vo.setId(rs.getLong("id"));
		vo.setParentId(rs.getLong("parent_id"));
		vo.setLevel(rs.getInt("level"));
		vo.setPath(rs.getString("path"));
		return vo;
	}

}
